package com.bt.design.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

/**
 * 测试实体
 * 
 * @author Mark
 *
 */
@Entity
@Table(name = "TASK_INFO")
public class TaskInfo implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Long id;
//	private Date createDate;
	
	//订阅id
	private String ids;
	private String resourceId;
	private Integer exchangeType;

	@Id
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "TaskInfo")
	@TableGenerator(name = "TaskInfo", table = "PK_GENERERATE_SEQ", pkColumnName = "gen_key", 
		valueColumnName = "gen_value", pkColumnValue = "TASK_INFO", allocationSize = 1)
	@Column(name = "ID", unique = true, nullable = false, precision = 10, scale = 0)
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
//	@JsonProperty
//	@Temporal(TemporalType.TIMESTAMP)
//	@Column(nullable = false, updatable = false)
//	public Date getCreateDate() {
//		return createDate;
//	}

	/**
	 * 设置创建日期
	 * 
	 * @param createDate
	 *            创建日期
	 */
//	public void setCreateDate(Date createDate) {
//		this.createDate = createDate;
//	}
	
	@Column(name = "IDS", length = 2000)
	public String getIds() {
		return ids;
	}
	public void setIds(String ids) {
		this.ids = ids;
	}
	public String getResourceId() {
		return resourceId;
	}
	public void setResourceId(String resourceId) {
		this.resourceId = resourceId;
	}
	public Integer getExchangeType() {
		return exchangeType;
	}
	public void setExchangeType(Integer exchangeType) {
		this.exchangeType = exchangeType;
	}
}
